import time


class Score:
    def __init__(self, id: str, user_name: str, score: int, create_time: int):
        self.id = id
        self.user_name = user_name  # 非管理员用户，目前该属性无意义
        self.score = score
        self.create_time = time.localtime(create_time)

    def __str__(self):
        return f"{self.id}: {self.user_name}: {self.score} {time.strftime('%Y-%m-%d %H:%M:%S', self.create_time)}"
